package co.legu.carpool.configure;

import co.legu.modules.wechat.bean.WechatAppidConfig;
import co.legu.modules.wechat.util.Wechat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

import static co.legu.carpool.common.bean.WechatTemplateMessageNames.*;

/**
 * 微信配置
 */
@Configuration
public class WechatConfigure {
    /**
     * 初始化微信配置
     */
    @Autowired
    public void initWechatAppids() {
        Wechat.registerConfig(
                /*WechatAppidConfig.builder("wx132a0c179ea6e238", "926ff7e8740e7fc4ebc2c4521fe6c2b5")
                        .baseUrl("https://jzfw.prod01.legutech.com")
                        .template(TASK_ASSIGN_NOTIFY, "iLJETJDpJgNsElsDjoyoHLL1IG7KQkiYsi5aWMyKYt4")
                        .template(TASK_REVIEW_NOTIFY, "BXprSJAULEd4-4K0gC6K3VoXvv81XPZUnZE7q9aSrpo")
                        .template(MAIL_IMPORT_NOTIFY, "mDszHlLYPQ2ncZWcPDlETJA9tq18F5HRuxRAR_35ldQ")
                        .build(),*/

                WechatAppidConfig.builder("wx2f468303e6a40ad4", "18ddc049581365f285589e71b471506b")
                        .baseUrl("https://carpool.shanch.cn")
                        .build()
        );
    }
}
